home *** CD-ROM | disk | FTP | other *** search
/ Workplace Effectiveness: Critical Thinking Skills / Workplace Effectiveness: Critical Thinking Skills.iso / pc / Files / Sleuth.dxr / 00003_Truth sleuth code.ls < prev    next >
Encoding:
Text File  |  1998-09-14  |  1.5 KB  |  92 lines

  1. global gMasterData, gSection, sleuthData
  2.  
  3. on goIntro
  4.   go(label("intro"))
  5.   goNarrator(gMasterData, "76")
  6.   set gSection to #intro
  7.   if voidp(sleuthData) then
  8.     set sleuthData to [#london1: [], #london2: EMPTY, #mexico1: [], #mexico2: EMPTY, #earth1: [], #earth2: EMPTY]
  9.   end if
  10. end
  11.  
  12. on golondon1
  13.   set gSection to #london1
  14.   go("london1")
  15.   goNarrator(gMasterData, "78")
  16. end
  17.  
  18. on exitTruthSentClick
  19.   setPuppetState([5, 14], #c, 0)
  20. end
  21.  
  22. on golondon2
  23.   set gSection to #london2
  24.   go("london2")
  25.   goNarrator(gMasterData, "79")
  26. end
  27.  
  28. on golondon3
  29.   go("london3")
  30.   goNarrator(gMasterData, "80")
  31.   set gSection to #london3
  32. end
  33.  
  34. on gomexico1
  35.   set gSection to #mexico1
  36.   go("mexico1")
  37.   goNarrator(gMasterData, "78")
  38. end
  39.  
  40. on gomexico2
  41.   set gSection to #mexico2
  42.   go("mexico2")
  43.   goNarrator(gMasterData, "79")
  44. end
  45.  
  46. on gomexico3
  47.   go("mexico3")
  48.   goNarrator(gMasterData, "81")
  49.   set gSection to #mexico3
  50. end
  51.  
  52. on goearth1
  53.   set gSection to #earth1
  54.   go("earth1")
  55.   goNarrator(gMasterData, "78")
  56. end
  57.  
  58. on goearth2
  59.   set gSection to #earth2
  60.   go("earth2")
  61.   goNarrator(gMasterData, "79")
  62. end
  63.  
  64. on goearth3
  65.   go("earth3")
  66.   goNarrator(gMasterData, "82")
  67.   set gSection to #earth3
  68. end
  69.  
  70. on clickDone
  71.   if not iAmActivated(gMasterData) then
  72.     activate(gMasterData)
  73.   end if
  74.   case gSection of
  75.     #london1:
  76.       golondon2()
  77.     #london2:
  78.       exitTruthSentClick()
  79.       golondon3()
  80.     #mexico1:
  81.       gomexico2()
  82.     #mexico2:
  83.       exitTruthSentClick()
  84.       gomexico3()
  85.     #earth1:
  86.       goearth2()
  87.     #earth2:
  88.       exitTruthSentClick()
  89.       goearth3()
  90.   end case
  91. end
  92.